<html>
  <head>
    <title>Questions Overview</title>	
    <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<script language="JavaScript">  
/*
    function questionDoDelete(questionId, strQuestion) {
    	if (confirm("Delete question: " + strQuestion.toString() + "?") == 1) {
	    strQuestionId = questionId.toString();
	    document.location = "/question_delete?questionId=" + strQuestionId; 
	}
    }
*/
</script>
  </head>
  <body>
  <h2>Questions Overview</h2>
  <hr> 
  <table>
   {% for q in questions %}
      <tr><td><h4><a href="/question_edit?id={{ q.id }}">{{ q.question }}</a></h4></td>
          <!-- td><a onMouseOver="this.style.cursor='hand';" onClick="qId={{ q.id }}; sQuestion='{{ q.question }}'; questionDoDelete(qId, sQuestion);">
	      &nbsp;<img class="modPicQuestion" src="img/trash-can.png"">{{ q.isReferenced }}</td---></tr>
    {% endfor %}
    </table>
    <br><hr><br>
    <a href="/question_edit?id=new">Create New Question</a>
    <hr>
    Double-click to <b>edit</b> a question		
    <br><br><a href="\">Start page</a>
   </body>
</html>
